package Coffee.dao;

import Coffee.bean.Order;

import java.util.List;

public interface OrderDao {
    int insertOrder(String orderid,String userid,String username,String cofid,String
            cofname,int cofcount,int coftotal,String createtime);//下单,默认状态待支付
    List<Order> queryOrder(String username);//根据输入的username查看订单

    List<Order> queryOrderAll();//查看所有订单

    List<Order> queryOrderByState(String username,String orderstate);//根据订单状态，name查询订单

    int updateOrderState(String orderstate,String orderid);//修改订单状态

    Order queryOrderByOrderId(String orderid);//根据orderid查询单个订单

    List<Order> queryOrderAdmin(String username);//查询指定用户待支付，制作中的订单
}
